﻿using System;
using System.Collections.Generic;
using System.Collections;
using System.Linq;
using System.Web;
using System.Runtime.Serialization;

namespace ArchitectureV2
{
    [DataContract]
    public class Result
    {
        private object returnValue;
        private string error;

        public Result() { }
        public Result(object ret, string error) { this.returnValue = ret; this.error = error; }

        [DataMember]
        public object ReturnValue { get { return (returnValue); } set { returnValue = value; } }

        [DataMember]
        public string Error { get { return (error); } set { error = value; } }
    }

    [DataContract]
    public class AwesomeResult
    {
        private string returnValue;
        private string error;

        public AwesomeResult() { }
        public AwesomeResult(string ret, string error) { this.returnValue = ret; this.error = error; }

        [DataMember]
        public string ReturnValue { get { return (returnValue); } set { returnValue = value; } }

        [DataMember]
        public string Error { get { return (error); } set { error = value; } }
    }
}